package com.meitianhui.convenitenbuy.module.mine.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 Created by Administrator on 2016/7/29.
 */
public class UserUrlBean implements Parcelable{

    /**
     * head_pic_path : 528355966ea84b309342a2b68500637b
     * im_user_id : 3342272e78ee4a52b6116a3ab6efa84a
     * nickname : 丁戈
     */

    private String head_pic_path;
    private String im_user_id;
    private String nickname;
    private boolean ifLiveIn = false;
    private String url="";//直播室地址

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public boolean isIfLiveIn() {
        return ifLiveIn;
    }

    public void setIfLiveIn(boolean ifLiveIn) {
        this.ifLiveIn = ifLiveIn;
    }

    public String getHead_pic_path() {
        return head_pic_path;
    }

    public void setHead_pic_path(String head_pic_path) {
        this.head_pic_path = head_pic_path;
    }

    public String getIm_user_id() {
        return im_user_id;
    }

    public void setIm_user_id(String im_user_id) {
        this.im_user_id = im_user_id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.head_pic_path);
        dest.writeString(this.im_user_id);
        dest.writeString(this.nickname);
        dest.writeByte(this.ifLiveIn ? (byte) 1 : (byte) 0);
        dest.writeString(this.url);
    }

    public UserUrlBean() {
    }

    protected UserUrlBean(Parcel in) {
        this.head_pic_path = in.readString();
        this.im_user_id = in.readString();
        this.nickname = in.readString();
        this.ifLiveIn = in.readByte() != 0;
        this.url = in.readString();
    }

    public static final Creator<UserUrlBean> CREATOR = new Creator<UserUrlBean>() {
        @Override
        public UserUrlBean createFromParcel(Parcel source) {
            return new UserUrlBean(source);
        }

        @Override
        public UserUrlBean[] newArray(int size) {
            return new UserUrlBean[size];
        }
    };
}
